Release 10.1A: OpenEdge Getting Started:
Object-oriented Programming
Defining an object reference as a variable
This is the syntax to define an object reference as a variable:
Element descriptions for this syntax diagram follow:
object-referenceThe name of a variable that will contain an object reference.
access-modeThe optional access modifier (
PRIVATE|PROTECTED|PUBLIC) if the variable is being defined as a data member in a class definition. In a procedure, theaccess-modecannot be specified and is always private.CLASSThe
CLASSkeyword is required iftype-nameconflicts with an abbreviation for a built in Progress data type, such asINT(INTEGER). Otherwise, it can optionally be used to clarify the readability of the statement.type-nameThe type name of the class or interface. For more information on type names, see the "Using the CLASS construct" section or the "Using the INTERFACE construct" section, respectively.
The following example shows a fragment of the
Mainclass from the sample classes that are fully implemented in the "Sample classes" section. This fragment shows several object references defined as variables:
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |